package com.tyj.movie.mapper;

import com.tyj.movie.entity.MovieComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tyj.movie.vo.MovieCommentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
public interface MovieCommentMapper extends BaseMapper<MovieComment> {

    List<MovieCommentVo> selectListMovieCommentVo(@Param("id") Long id);

    void movieCommentNumAdd(Long id);

    void movieCommentNumReduce(Long id);

    Integer queryCommentMumberByMovieId(Long id);
}
